<?php

/**
 * 通路控制器
 * Class LoginController
 */
class LoginController extends ControllerBase
{
    /**
     * 登录静态页面
     */
    public function indexAction()
    {
        echo '登录页';
        exit;
    }

    /**
     * 登录提交方法
     */
    public function doLogin()
    {
        $user_name = $this->dispatcher->getParam('user_name');
        $password = $this->dispatcher->getParam('password');
        $m = new \Admin\Admin();
        $res = $m->findFirst(['phone' => 18673431592]);
        var_dump($res);
        foreach ($res as $it) {
            var_dump($it);
        }
    }

}

